﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="admin_Pages_Upload" %>
<%@ Register src="../../User controls/SWFUpload.ascx" tagname="SWFUpload" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>File Upload handler</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:PlaceHolder ID="phAspNetFileUpload" runat="server" Visible="false">
			<div id="aspnetFileUpload">
				<portal:DJUploadController id="DJUploadController1" runat="server" ShowCancelButton="true"></portal:DJUploadController>
				<portal:DJFileUpload ID="DJFileUpload1" runat="server" RequiredField="true" ShowAddButton="true" ShowUploadButton="true" />			
			</div>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="phSWFUpload" runat="server" Visible="true">
			<div id="swfuploadWrapper">
			<uc1:SWFUpload ID="SWFUpload1" runat="server" />
			<script type="text/javascript">
				<!--
				$(document).ready(function(){
					var opts={
						flag: "<%=Relation %>",
						flagValue:"<%=RelationValue %>",
						url: "<%=SWFUploadUrl %>",
						limit:"<%=Limit %>",
						isImg:"<%=IsImage %>"
					};
					InitSWFUploader(opts);
				});
				//-->
			</script>
    </div>
    </asp:PlaceHolder>
    </form>
</body>
</html>
